package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.ExamResultUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 学生成绩表 Mapper 接口
 * </p>
 *
 * @author zfy
 * @since 2020-08-15
 */
public interface ExamResultUserMapper extends BaseMapper<ExamResultUser> {

    IPage<Map<String,Object>> examResultList(@Param("page")Page page,
                                             @Param("createUsers") String[] createUsers,
                                             @Param("name") String name);

    Map<String, Object> examResulInfo(@Param("examResultUserId") Long examResultUserId);

    List<Map<String, Object>> examResultUserList(@Param("userId") Long userId, @Param("examId") Long examId);

}
